package com.blackline.UI.MATCH;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Feb, 2013
 * <p>This page is after clicking "Add" link on the MatchSetDetails_new page. <br>
 * Please refer to UI.PassRuleDetails.png in doc-files.
 */
public class PassRuleDetails {
	/**
	 * Pass Rule Name text field
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_tbName")
	public WebElement Pass_Rule_Name_textField;
	
	/**
	 * Active checkbox
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_cbActive")
	public WebElement Active_checkbox;
	
	/**
	 * Automatic radio button
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_rb1")
	public WebElement Automatic_radiobutton;
	
	/**
	 * Suggested radio button
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_rb2")
	public WebElement Suggested_radiobutton;
	
	/**
	 * Reason code dropdownlist
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_ddlReasonCodes")
	public WebElement Reason_Code_dropdownlist;
	
	/**
	 * Description iframe
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_bleDescription_contentIframe")
	public WebElement Description_iframe;
	
	/**
	 * Description text box
	 */
	@FindBy (xpath = "//body")
	public WebElement Description_textBox;
	
	/**
	 * 1st Filter Fields link
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_sqlFilterSummary1_lbFilterFields")
	public WebElement Filter_Fields_link_1;
	
	/**
	 * 2nd Filter Fields link
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_sqlFilterSummary2_lbFilterFields")
	public WebElement Filter_Fields_link_2;
	
	/**
	 * Grouping 1 dropdownlist
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_ddlGroup1_1")
	public WebElement Grouping_1_dropdownlist;
	
	/**
	 * Grouping 2 dropdownlist
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_ddlGroup1_2")
	public WebElement Grouping_2_dropdownlist;
	
	
	/**
	 * Add link under grouping
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_hlAddGroup")
	public WebElement Add_linkUnderGrouping;
	
	/**
	 * Use Dynamic Grouping checkbox
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_cbUseDynamicOptions")
	public WebElement Use_Dynamic_Grouping_checkbox;
	
	/**
	 * Mapping 1 dropdownlist
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_mapFields_ddlMap1_1")
	public WebElement Mapping_1_dropdownlist;
	
	/**
	 * Mapping 2 dropdownlist
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_mapFields_ddlMap1_2")
	public WebElement Mapping_2_dropdownlist;
	
	/**
	 * Offset text field
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_mapFields_tbOffset1")
	public WebElement Offset_textField;
	
	/**
	 * Range text field
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_mapFields_tbRange1")
	public WebElement Range_textField;
	
	/**
	 * Add link under Mapping
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_mapFields_hlAddMap")
	public WebElement Add_linkUnderMapping;
	
	/**
	 * Cancel button
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_btnCancel")
	public WebElement Cancel_button;
	
	/**
	 * Save button
	 */
	@FindBy(id = "ctl00_ctl00_contentBody_cphMain_btnSave")
	public WebElement Save_button;
	
}
